package com.woniuxy.exception.account;

public enum AccountExceptionCode {

    ACCOUNT_PWD_NOT_MATCH(5011,"密码错误"),
    ACCOUNT_NO_REGISTER(5012,"用户未注册"),
    ACCOUNT_NOT_LOGIN(5013,"用户未登录"),
    ACCOUNT_NOT_ACCESS(5014,"用户无权限"),
    ACCOUNT_CODE_NOT_MATCH(5015,"验证码错误"),
    ACCOUNT_CODE_USE_TOMUCH(5016,"操作过于频繁,请稍后再发送"),
    ACCOUNT_CODE_MUCH_5(5017,"一个小时只能发送5次验证码"),

    ACCOUNT_IS_EXIT(5018,"账号或号码已存在"),
    ACCOUNT_PWD_MUCH_5(5019,"密码错误超过5次，请一小时后再试");



    Integer code;
    String message;

    AccountExceptionCode() {
    }

    AccountExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String exceptionName) {
        this.message = exceptionName;
    }
}
